# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gom
pkgver=0.4
pkgrel=1
pkgdesc="GObject Data Mapper"
url="https://wiki.gnome.org/Projects/Gom"
arch="all"
license="LGPL-2.1-or-later"
makedepends="meson vala gobject-introspection-dev py3-gobject3 sqlite-dev glib-dev
	gdk-pixbuf-dev"
subpackages="$pkgname-dev"
source="https://download.gnome.org/sources/gom/$pkgver/gom-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	ninja -C output
}

check() {
	# gom-stress tests takes a LOOOONG time
	meson test -C output -t 10
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="d847928ce09c53a3f64777c313cb843052e5e001873f29d3f7acf02772cadf0e4b133fb0137aa0463b4ff95dd54810bde87062d8e396ff4fc6d142ba59c8e9c8  gom-0.4.tar.xz"
